package com.mercury.ec.module.air.controller.admin.order.vo.orderpassenger;

import com.mercury.ec.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

import static com.mercury.ec.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static com.mercury.ec.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 机票订单乘客分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AirOrderPassengerPageReqVO extends PageParam {

    @Schema(description = "订单id", example = "1949")
    private Long orderId;

    @Schema(description = "序号")
    private Integer serialNo;

    @Schema(description = "原订单乘客id", example = "16640")
    private Long originOrderPassengerId;

    @Schema(description = "乘客类型 字典（system_passenger_type 1-成人/2-儿童/3-婴儿）", example = "2")
    private Integer type;

    @Schema(description = "国家代码 见表（basic_country.no）", example = "CN")
    private String countryNo;

    @Schema(description = "姓名", example = "赵六")
    private String name;

    @Schema(description = "性别 字典（system_user_sex）")
    private Integer sex;

    @Schema(description = "证件类型 字典（system_card_type）", example = "1")
    private Integer cardType;

    @Schema(description = "证件号")
    private String cardNo;

    @Schema(description = "证件有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] cardValidDate;

    @Schema(description = "证件签发国家代码 见表（basic_country.no）", example = "CN")
    private String cardIssuingCountryNo;

    @Schema(description = "出生日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate birthday;

    @Schema(description = "是否携带婴儿")
    private Boolean haveBaby;

    @Schema(description = "监护人姓名", example = "赵六")
    private String guardianName;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "是否发送短信")
    private Boolean sendSms;

    @Schema(description = "GP验证类型 字典（air_gp_check_type 1-公务卡/2-预算单位）", example = "1")
    private Integer gpCheckType;

    @Schema(description = "GP公务卡发卡银行 字典（system_bank）", example = "1")
    private Integer gpBank;

    @Schema(description = "GP预算公司", example = "")
    private String gpBudgetCorp;
}
